package com.team.arms.xitong.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.arms.xitong.entity.LogManage;
import com.team.arms.xitong.entity.vo.LogVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Huazige
 * @since 2022-06-24
 */
public interface LogManageMapper extends BaseMapper<LogManage> {

    @Select(" SELECT distinct a.log_id,a.log_type,b.username,b.login_place,b.access_time,b.access_id" +
            " from x_log_manage AS a,x_system_access as b where a.log_id=b.log_id  " +
            "order by a.log_id" )
    List<LogVo> select();

    boolean update(LogVo logVo);
}
